﻿using System.Collections.Generic;
using System.Linq;
using PortalCurriculo.Domain.Interface;

namespace PortalCurriculo.Domain
{
    public partial class Cargo : ICargo
    {
        public List<Cargo> SelecionarLista()
        {
            return (from cargo in Context.Instance.Cargoes
                    where (cargo.IdEspecializacaoArea.Equals(IdEspecializacaoArea) || IdEspecializacaoArea.Equals(0))
                          && cargo.Ativo
                    orderby cargo.Descricao
                    select cargo).ToList();
        }
    }
}
